package sg.edu.nus.comp.icreate.ivletalk.forum;

import java.util.ArrayList;
import java.util.List;

public class Heading {
	private String id;
	private List<ForumThread> threads = new ArrayList<ForumThread>();
	private String title;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<ForumThread> getThreads() {
		return threads;
	}

	public int getNumOfThreads() {
		return threads.size();
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String toString() {
		return title + "(" + getNumOfThreads() + ")";
	}
}
